package UI.Buttons
{
	import flash.display.*;
	
	import mx.core.UIComponent;
	
	public class UIButton extends UIComponent
	{
		private var defaultState:Bitmap;
		
		public function UIButton(defaultState:Bitmap)
		{
			super();
			this.defaultState = defaultState;
			
			addChildren();
		}
		
		private function addChildren():void
		{
			addChild(defaultState);
		}
		
		public override function get width():Number
		{
			return defaultState.width;
		}
		
		public override function get height():Number
		{
			return defaultState.height;
		}
		
		public override function set height(h:Number):void
		{
			defaultState.height=h;
		}
	}
}